<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: FLASH</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">模块</a> &#124;
<a href="#enum-members">枚举</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">FLASH<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>FLASH driver modules  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
模块</h2></td></tr>
<tr class="memitem:group___f_l_a_s_h___exported___constants"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h___exported___constants.html">FLASH_Exported_Constants</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___f_l_a_s_h___private___constants"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h___private___constants.html">FLASH_Private_Constants</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___f_l_a_s_h___private___functions"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h___private___functions.html">FLASH_Private_Functions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:gadc63a6f3404ff1f71229a66915e9cdc0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a> { <br />
&#160;&#160;<b>FLASH_BUSY</b> = 1, 
<b>FLASH_ERROR_ERPC</b>, 
<b>FLASH_ERROR_ERPROT</b>, 
<b>FLASH_COMPLETE</b>, 
<br />
&#160;&#160;<b>FLASH_TIMEOUT</b>
<br />
 }</td></tr>
<tr class="memdesc:gadc63a6f3404ff1f71229a66915e9cdc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">FLASH Status  <a href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">更多...</a><br /></td></tr>
<tr class="separator:gadc63a6f3404ff1f71229a66915e9cdc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:gacaff2d6333c831e1f2f2fb1e4be5bc35"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gacaff2d6333c831e1f2f2fb1e4be5bc35">FLASH_OP_Unlock</a> (uint32_t PageAddr)</td></tr>
<tr class="memdesc:gacaff2d6333c831e1f2f2fb1e4be5bc35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lock the FLASH Page Erase/Write access.  <a href="#gacaff2d6333c831e1f2f2fb1e4be5bc35">更多...</a><br /></td></tr>
<tr class="separator:gacaff2d6333c831e1f2f2fb1e4be5bc35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad8eda1dd6e3928e88c40e2a1e54bac64"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gad8eda1dd6e3928e88c40e2a1e54bac64">FLASH_OP_Lock</a> (uint32_t PageAddr)</td></tr>
<tr class="memdesc:gad8eda1dd6e3928e88c40e2a1e54bac64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unlock the FLASH Page Erase/Write access.  <a href="#gad8eda1dd6e3928e88c40e2a1e54bac64">更多...</a><br /></td></tr>
<tr class="separator:gad8eda1dd6e3928e88c40e2a1e54bac64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4084d0184bab463a1579271bf474aaef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga4084d0184bab463a1579271bf474aaef">FLASH_Unlock</a> (void)</td></tr>
<tr class="memdesc:ga4084d0184bab463a1579271bf474aaef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unlock the FLASH controller register write-protect.  <a href="#ga4084d0184bab463a1579271bf474aaef">更多...</a><br /></td></tr>
<tr class="separator:ga4084d0184bab463a1579271bf474aaef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga46899557353c4312ddbe3f25e65df1d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga46899557353c4312ddbe3f25e65df1d8">FLASH_Lock</a> (void)</td></tr>
<tr class="memdesc:ga46899557353c4312ddbe3f25e65df1d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lock the FLASH controller register write-protect.  <a href="#ga46899557353c4312ddbe3f25e65df1d8">更多...</a><br /></td></tr>
<tr class="separator:ga46899557353c4312ddbe3f25e65df1d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga94c1e51a9c3bf8d48eb6eb4a4d054861"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga94c1e51a9c3bf8d48eb6eb4a4d054861">FLASH_ITConfig</a> (uint32_t FLASH_IT, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga94c1e51a9c3bf8d48eb6eb4a4d054861"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the specified FLASH interrupts.  <a href="#ga94c1e51a9c3bf8d48eb6eb4a4d054861">更多...</a><br /></td></tr>
<tr class="separator:ga94c1e51a9c3bf8d48eb6eb4a4d054861"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabdabeceeb7c2b03a55da23464ed03cf7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gabdabeceeb7c2b03a55da23464ed03cf7">FLASH_ClearITPendingBit</a> (uint32_t FLASH_IT)</td></tr>
<tr class="memdesc:gabdabeceeb7c2b03a55da23464ed03cf7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the specified FLASH interrupt flag.  <a href="#gabdabeceeb7c2b03a55da23464ed03cf7">更多...</a><br /></td></tr>
<tr class="separator:gabdabeceeb7c2b03a55da23464ed03cf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga54f590d613cea8f3147c76a07fcccb24"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga54f590d613cea8f3147c76a07fcccb24">FLASH_GetITStatus</a> (uint32_t Flag)</td></tr>
<tr class="memdesc:ga54f590d613cea8f3147c76a07fcccb24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified FLASH interrupt has occurred or not.  <a href="#ga54f590d613cea8f3147c76a07fcccb24">更多...</a><br /></td></tr>
<tr class="separator:ga54f590d613cea8f3147c76a07fcccb24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga272a03dfca95d60ff6b5b28cd7d532c5"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga272a03dfca95d60ff6b5b28cd7d532c5">FLASH_GetFlagStatus</a> (uint32_t Flag)</td></tr>
<tr class="memdesc:ga272a03dfca95d60ff6b5b28cd7d532c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified FLASH flag is set or not.  <a href="#ga272a03dfca95d60ff6b5b28cd7d532c5">更多...</a><br /></td></tr>
<tr class="separator:ga272a03dfca95d60ff6b5b28cd7d532c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2ad803999ae93ec03700983c59cae264"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga2ad803999ae93ec03700983c59cae264">FLASH_WaitForLastOperation</a> (uint32_t Timeout)</td></tr>
<tr class="memdesc:ga2ad803999ae93ec03700983c59cae264"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wait for a FLASH operation to complete.  <a href="#ga2ad803999ae93ec03700983c59cae264">更多...</a><br /></td></tr>
<tr class="separator:ga2ad803999ae93ec03700983c59cae264"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga83107c4faee4e675e1a021c2530c9970"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga83107c4faee4e675e1a021c2530c9970">FLASH_ProgramByte</a> (uint32_t Addr, uint8_t Data)</td></tr>
<tr class="memdesc:ga83107c4faee4e675e1a021c2530c9970"><td class="mdescLeft">&#160;</td><td class="mdescRight">Program a byte (8-bit) at a specified address.  <a href="#ga83107c4faee4e675e1a021c2530c9970">更多...</a><br /></td></tr>
<tr class="separator:ga83107c4faee4e675e1a021c2530c9970"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad53043f7548575b094741497d9a54eb1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gad53043f7548575b094741497d9a54eb1">FLASH_ProgramHalfWord</a> (uint32_t Addr, uint16_t Data)</td></tr>
<tr class="memdesc:gad53043f7548575b094741497d9a54eb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Program a half-word (16-bit) at a specified address.  <a href="#gad53043f7548575b094741497d9a54eb1">更多...</a><br /></td></tr>
<tr class="separator:gad53043f7548575b094741497d9a54eb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac2d3631c3b2ce41eba346ce71c922424"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#gac2d3631c3b2ce41eba346ce71c922424">FLASH_ProgramWord</a> (uint32_t Addr, uint32_t Data)</td></tr>
<tr class="memdesc:gac2d3631c3b2ce41eba346ce71c922424"><td class="mdescLeft">&#160;</td><td class="mdescRight">Program a word (32-bit) at a specified address.  <a href="#gac2d3631c3b2ce41eba346ce71c922424">更多...</a><br /></td></tr>
<tr class="separator:gac2d3631c3b2ce41eba346ce71c922424"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga86ffd9e8dc00f2cde1e1ae767803447a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga86ffd9e8dc00f2cde1e1ae767803447a">FLASH_EraseChip</a> (void)</td></tr>
<tr class="memdesc:ga86ffd9e8dc00f2cde1e1ae767803447a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Full erase of FLASH memory Bank  <a href="#ga86ffd9e8dc00f2cde1e1ae767803447a">更多...</a><br /></td></tr>
<tr class="separator:ga86ffd9e8dc00f2cde1e1ae767803447a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga13cd893db6616373129eaae80949fa4d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___f_l_a_s_h.html#ga13cd893db6616373129eaae80949fa4d">FLASH_ErasePage</a> (uint32_t PageAddr)</td></tr>
<tr class="memdesc:ga13cd893db6616373129eaae80949fa4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Erase the specified FLASH memory page  <a href="#ga13cd893db6616373129eaae80949fa4d">更多...</a><br /></td></tr>
<tr class="separator:ga13cd893db6616373129eaae80949fa4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>FLASH driver modules </p>
<h2 class="groupheader">枚举类型说明</h2>
<a id="gadc63a6f3404ff1f71229a66915e9cdc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadc63a6f3404ff1f71229a66915e9cdc0">&#9670;&nbsp;</a></span>FLASH_Status</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FLASH Status </p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="gabdabeceeb7c2b03a55da23464ed03cf7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabdabeceeb7c2b03a55da23464ed03cf7">&#9670;&nbsp;</a></span>FLASH_ClearITPendingBit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLASH_ClearITPendingBit </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>FLASH_IT</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clear the specified FLASH interrupt flag. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">FLASH_IT</td><td>specifies the FLASH interrupt flags to clear. This parameter can be any combination of the following values: <ul>
<li>FLASH_FLAG_ALARM_ERASE_PROTADDR: The address to be erased is protectd interrupt flag </li>
<li>FLASH_FLAG_ALARM_ERASE_PCADDR: The address to be erased is PC interrupt source </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga86ffd9e8dc00f2cde1e1ae767803447a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga86ffd9e8dc00f2cde1e1ae767803447a">&#9670;&nbsp;</a></span>FLASH_EraseChip()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a> FLASH_EraseChip </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Full erase of FLASH memory Bank </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga13cd893db6616373129eaae80949fa4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga13cd893db6616373129eaae80949fa4d">&#9670;&nbsp;</a></span>FLASH_ErasePage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a> FLASH_ErasePage </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>PageAddr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Erase the specified FLASH memory page </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">PageAddr</td><td>FLASH page to erase The value of this parameter depend on device used within the same series</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga272a03dfca95d60ff6b5b28cd7d532c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga272a03dfca95d60ff6b5b28cd7d532c5">&#9670;&nbsp;</a></span>FLASH_GetFlagStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FlagStatus FLASH_GetFlagStatus </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Flag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the specified FLASH flag is set or not. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Flag</td><td>specifies the FLASH flag to check. This parameter can be: <ul>
<li>FLASH_FLAG_BUSY: FLASH busy flag. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of the FLASH flag (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga54f590d613cea8f3147c76a07fcccb24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga54f590d613cea8f3147c76a07fcccb24">&#9670;&nbsp;</a></span>FLASH_GetITStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FlagStatus FLASH_GetITStatus </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>FLASH_IT</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the specified FLASH interrupt has occurred or not. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">FLASH_IT</td><td>specifies the FLASH interrupt source to check. This parameter can be: <ul>
<li>FLASH_IT_ALARM_ERASE_PROTADDR: Flash erase protection alarm interrupt flag. </li>
<li>FLASH_IT_ALARM_ERASE_PCADDR: Flash erase PC address alarm interrupt flag. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of the FLASH flag (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga94c1e51a9c3bf8d48eb6eb4a4d054861"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga94c1e51a9c3bf8d48eb6eb4a4d054861">&#9670;&nbsp;</a></span>FLASH_ITConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLASH_ITConfig </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>FLASH_IT</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the specified FLASH interrupts. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">FLASH_IT</td><td>FLASH interrupts. This parameter can be any combination of the following values: <ul>
<li>FLASH_IT_ALARM_ERASE_PROTADDR: The address to be erased is protectd interrupt source. </li>
<li>FLASH_IT_ALARM_ERASE_PCADDR: The address to be erased is PC interrupt source. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga46899557353c4312ddbe3f25e65df1d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga46899557353c4312ddbe3f25e65df1d8">&#9670;&nbsp;</a></span>FLASH_Lock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLASH_Lock </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Lock the FLASH controller register write-protect. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gad8eda1dd6e3928e88c40e2a1e54bac64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad8eda1dd6e3928e88c40e2a1e54bac64">&#9670;&nbsp;</a></span>FLASH_OP_Lock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLASH_OP_Lock </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>PageAddr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unlock the FLASH Page Erase/Write access. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">PageAddr</td><td>Set the page address to lock erase/write protect. This parameter can be set 0xFFFFFFFF which means lock all pages. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gacaff2d6333c831e1f2f2fb1e4be5bc35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacaff2d6333c831e1f2f2fb1e4be5bc35">&#9670;&nbsp;</a></span>FLASH_OP_Unlock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLASH_OP_Unlock </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>PageAddr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Lock the FLASH Page Erase/Write access. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">PageAddr</td><td>Set the page address to lock erase/write protect. This parameter can be set 0xFFFFFFFF which means lock all pages. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga83107c4faee4e675e1a021c2530c9970"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga83107c4faee4e675e1a021c2530c9970">&#9670;&nbsp;</a></span>FLASH_ProgramByte()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a> FLASH_ProgramByte </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>Data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Program a byte (8-bit) at a specified address. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Addr</td><td>specify the address to be programmed. </td></tr>
    <tr><td class="paramname">Data</td><td>specify the data to be programmed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gad53043f7548575b094741497d9a54eb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad53043f7548575b094741497d9a54eb1">&#9670;&nbsp;</a></span>FLASH_ProgramHalfWord()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a> FLASH_ProgramHalfWord </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>Data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Program a half-word (16-bit) at a specified address. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Addr</td><td>specify the address to be programmed. </td></tr>
    <tr><td class="paramname">Data</td><td>specify the data to be programmed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gac2d3631c3b2ce41eba346ce71c922424"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac2d3631c3b2ce41eba346ce71c922424">&#9670;&nbsp;</a></span>FLASH_ProgramWord()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a> FLASH_ProgramWord </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Program a word (32-bit) at a specified address. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Addr</td><td>specify the address to be programmed. </td></tr>
    <tr><td class="paramname">Data</td><td>specify the data to be programmed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga4084d0184bab463a1579271bf474aaef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4084d0184bab463a1579271bf474aaef">&#9670;&nbsp;</a></span>FLASH_Unlock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FLASH_Unlock </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unlock the FLASH controller register write-protect. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2ad803999ae93ec03700983c59cae264"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2ad803999ae93ec03700983c59cae264">&#9670;&nbsp;</a></span>FLASH_WaitForLastOperation()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___f_l_a_s_h.html#gadc63a6f3404ff1f71229a66915e9cdc0">FLASH_Status</a> FLASH_WaitForLastOperation </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Timeout</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Wait for a FLASH operation to complete. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Timeout</td><td>maximum flash operation timeout </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">FLASH_Status</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
